﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Position.ascx.cs" Inherits="NetDon.OA.Portal.Components.PositionControl" %>
<%@ Register Assembly="NineRays.WebControls.FlyTreeView" Namespace="NineRays.WebControls"
    TagPrefix="NineRays" %>
<script language="javascript" type="text/javascript">
    var treeview;
    function flyTreeView_onInitialized(treeviewObject) {
        treeview = treeviewObject;
    }
    function SelectedNodeChanged() {
        $get('<%=btnModify.ClientID %>').click();
    }                 
</script>


<NineRays:FlyTreeView ID="treeCompany" Width="280px" runat="server" Height="480px"
    DrawLines="true" ContentClickExpands="false" OnPopulateNodes="treeCompany_PopulateNodes"
    OnInitializedJavascript="flyTreeView_onInitialized">
</NineRays:FlyTreeView>
 <asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click" Style="display: none"
        CausesValidation="False" />